package org.sixtynine.stock.dao;

/**
 * @author Thilan
 *
 */

import java.util.Date;
import java.util.List;

import org.sixtynine.stock.dto.GridPramDTO;
import org.sixtynine.stock.dto.Page;
import org.sixtynine.stock.entity.AnnualySharePriceData;
import org.springframework.transaction.annotation.Transactional;

@Transactional(readOnly = true)
public interface AnnualPriceDataDao extends
		AbstractDao<AnnualySharePriceData, Integer> {

	void saveAnnualySharePriceData(AnnualySharePriceData annualShareData);

	List<AnnualySharePriceData> findAnnualySharePriceData(int companyId);

	List<AnnualySharePriceData> searchAnnualySharePriceData(int companyId,
			Date fromYear, Date toYear, String orderBy, String orderByName);

	public Page<AnnualySharePriceData> searchAnnualySharePriceData(
			int companyId, Date fromYear, Date toYear, String orderBy,
			String orderByName, GridPramDTO gridPramDTO);

	public void deleteAnnualySharePriceData(int companyId, Date fromDate,
			Date toDate);

}
